﻿using CommunityToolkit.Mvvm.ComponentModel;
using MaterialDesignThemes.Wpf;
using Prism.Services.Dialogs;
using ScottPlot.Colormaps;
using System.Windows;

namespace ProductionLine.Modules.ShareLib.Models;
/// <summary>
/// 作用: 存放当前的用户,同时实现dialog消息弹窗
/// 方式一: 静态类
/// 方式二: 单例,以服务的形式注入←选的这个,在app.xaml.cs中注入
/// </summary>
public class UserSession : ObservableObject {
    private User _user = new User() { UserName = "test", Password = "test" };
    /// <summary>
    /// 存放当前的用户
    /// </summary>
    public User CurrentUser {
        get => _user;
        set => SetProperty(ref _user, value);
    }
}